package net.csdn.business.webhook.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

/**
 * @author likun
 * @date 2023/2/1 14:43
 */
@Data
@Configuration
@RefreshScope
public class WebHookConfigData {
    /**
     * 令牌自定义标识
     */
    @Value("${repeat.token.header:uuid}")
    private String repeatHeader;

    @Value("${repeat.enabled:true}")
    private boolean repeatEnabled;
    
    @Value("${cache.redis.prefix:at}")
    private String redisKeyPrefix;

    @Value("${cache.default.time.out:60}")
    private Integer redisDefaultTimeOut;

    /**
     * webHook配置敏感字段aes加密根密钥，必须为16位长度，否则报错
     */
    @Value("${webhook.encrypt.key}")
    private String encryptKey;

}